/*
 * Copyright (c)  2020,  DataPipeline
 * All rights reserved.
 *
 * Id:AuthPrincipal.java   2020-08-19 16:02 wanglijun
 */
package cn.datacare.marmot.web;

import java.security.Principal;

/**
 * <p>
 * Title:
 * </p>
 * <p>
 * Description:
 * </p>
 * <p>
 * Copyright: Copyright (c) 2020
 * </p>
 * <p>
 * Company/Department: DataPipeline
 * </p>
 *
 * @author wanglijun
 * @version 1.0
 * @since 2020-08-19 16:02
 */
public class AuthPrincipal implements Principal {

    private String username;


    public AuthPrincipal(String username) {
        this.username = username;
    }

    /**
     * Returns the name of this principal.
     *
     * @return the name of this principal.
     */
    @Override
    public String getName() {
        return this.username;
    }
}
